<template>
  <view class="container">
    <my-login v-if='!token'></my-login>
    <my-info v-else></my-info>
  </view>
</template>

<script>
  import tabbarMixin from '@/mixin/tabbar-badge.js';
  import {mapState} from 'vuex';
  export default {
    mixins: [tabbarMixin],
    data() {
      return {
        
      };
    },
    computed:{
      ...mapState('user',['token'])
    }
  }
</script>

<style lang="scss">
page,.container{
  height: 100%;
}
</style>
